package com.superquan.selfstudybootmybatis.utils.factory.abstract_factory;

/**
 * @program: self-study-bootmybatis
 * @ClassName Client003
 * @description: 客户003
 * @author: zwq
 **/
public class Client003 {
    public static void main(String[] args) {
        //通过总工厂创建子工厂
        TotalFactory totalFactory = new TotalFactoryReally();
        Fish fish = totalFactory.createFish();
        fish.run();

        TotalFactory totalFactory1 = new TotalFactoryReally();
        Fruit fruit = totalFactory1.createFruit();
        fruit.run();
    }
}
